package lab02;

public class Zelos implements Boss{
    private String name;
    private int hp;

    public Zelos(String name, int hp) {
        this.name = name;
        this.hp = hp;
    }

    public Zelos() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    @Override
    public void attack() {
        System.out.println("Boss:"+this.name+"进行了烈焰猛击，"+this.name+"当前血量："+this.hp+"点");

    }

    @Override
    public void moveMode() {
        System.out.println("Boss:"+this.name+"飞行移动中~");
    }

    @Override
    public void addBlood() {
        if(hp<10){
            this.hp+=30;
            System.out.println("补血成功！血量+30，Boss:"+this.name+"血量剩余："+this.hp+"点。");
        }else {
            System.out.println("补血失败！Boss:"+this.name+"血量未小于10点！");
        }
    }
}
